package com.yangwudongxi.sqlloghelper.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 获取表注释请求
 *
 * @author 氧屋东西
 */
@Data
public class TableCommentsRequest {
    
    @NotEmpty(message = "表名列表不能为空")
    private List<String> tableNames;
    
    @NotNull(message = "数据库配置不能为空")
    @Valid
    private DatabaseConfig dbConfig;
}